package com.gmcc.docmanager.download;

import com.gmcc.docmanager.download.DownloadItem;
import com.gmcc.docmanager.download.IDownloadListener;

interface IDownloadService {
	int getCount();
	DownloadItem getItem(int itemIndex, String savedUri);
	String startDownload(String downloadUrl, String downloadTag, long length, boolean notification, byte taskType);//Return URI
	void cancelDownload(String savedUri, String downloadUrl, String downloadTag);
	void pauseDownload(String savedUri, String downloadUrl, String downloadTag);
	void deleteDownloadFile(String savedUri, String downloadUrl, String downloadTag, boolean localFile);
	void showToastMessage(int i,String info);
	void addListener(IDownloadListener listener);
	void removeListener(IDownloadListener listener);
	void exit(int mainPID);
    void setDownloadMaxCount(int count);
}
